package cn.lkx.serviceorder.client;

import cn.lkx.commonutils.orderVo.OrderCourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * 远程调用 edu模块
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    //获取课程信息 生成订单 （课程封面、标题、讲师名称）
    @GetMapping("/eduservice/frontcourse/getCourseToOrder/{courseId}")
    public OrderCourseVo getCourseInfoToOrder(@PathVariable("courseId") String courseId);
}
